package com.chen;

import javax.swing.JComponent;
import javax.swing.JFrame;

public class Shell {

	public static void run(JComponent c) {
		JFrame frame = new JFrame("Demo");
		frame.add(c);

		frame.setUndecorated(true);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setBounds(350, 150, 500, 300);
		frame.setVisible(true);
	}
}
